package com.mojo.xmlbased;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * 日志,afterReturning 返回后通知类型
 *
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 * copyright (C), 2013-2021, 广州九尾信息科技有限公司
 */
public class AfterLog implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行了" + method.getName() + "方法,方法返回类型为" + method.getReturnType() + "，返回" + returnValue);
    }
}
